Skip to content

Conversation

@akikukeo
Copy link
Contributor

内容

各オーディオアイテムの推定再生時間を表示する機能を追加します。

関連 Issue

close #2852

スクリーンショット・動画など

image image

その他

@voicevox-preview-pages
Copy link

voicevox-preview-pages bot commented Dec 27, 2025

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:74bbf7a

@akikukeo
Copy link
Contributor Author

@Hiroshiba
レビュアーが自動でつかなかったため、メンションします。
お手すきの際にご確認いただけると助かります。

Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

レビュー中の考え:
このPRとは別で、1番上から足していって何秒から始まるかみたいなものを出せると便利そう。

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a feature to display the estimated playback duration for each audio item in the Talk editor. The implementation calculates audio length from AudioQuery data and includes a settings toggle to control visibility.

  • Adds calculateAudioLength function to compute audio duration from AudioQuery data
  • Implements UI display of audio duration next to each text field
  • Adds new setting showAudioLength with ON/OFF toggle in the settings dialog

Reviewed changes

Copilot reviewed 7 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/store/audioGenerate.ts Adds calculateAudioLength function to compute audio duration in seconds from EditorAudioQuery
src/components/Talk/AudioCell.vue Implements UI to display audio duration with proper engine support checks; includes unrelated type casting change
src/components/Dialog/SettingDialog/SettingDialog.vue Adds toggle control for showAudioLength setting; includes unrelated type casting change
src/store/setting.ts Adds showAudioLength to settingStoreState and rootMiscSettingKeys
src/type/preload.ts Refactors schema definitions, adds showAudioLength to rootMiscSettingSchema, and reorganizes type exports
tests/unit/backend/common/snapshots/configManager.spec.ts.snap Updates snapshot to include new showAudioLength setting

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

outputSamplingRate: 24000,
outputStereo: false,
kana: "",
} as unknown as EditorAudioQuery;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as unknownは不要そう?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f76dd83 にて修正しました。

Comment on lines 10 to 11
prePhonemeLength: 0.1,
postPhonemeLength: 0.1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre/postPhonomeLengthのテストもあったほうがよさそう。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b83ee32 にて追加しました。

Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!ありがとうございます。

@sevenc-nanashi sevenc-nanashi added this pull request to the merge queue Jan 6, 2026
Merged via the queue into VOICEVOX:main with commit 9769115 Jan 6, 2026
11 checks passed
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良い機能ですね!!!
合計する機能もあっても良さそう。もしよかったらissue作ってみていただけると・・・!
(難しそうだったらこちらでissue作ってみます 🙏 )


@takusea
お久しぶりです!!
もしよかったらなのですが、こちらの機能のデザイン調整、あるいはアドバイスいただけると心強いです!!
(VOICEVOX.exeを起動してる状態でブラウザ版を起動すると実際に試せると思います 🙏 )

@takusea
Copy link
Contributor

takusea commented Jan 7, 2026

概ねいい感じだと思います!
気になった点としては、ホバー時の削除アイコンによる表示ズレと、文字の表示幅が狭まりそうだと思いました!
position: absoluteで右下に絶対配置すると良さそうかと…!(数値は目安)
image

@Hiroshiba
Copy link
Member

@takusea おお、確認等ありがとうございます!!

表示ズレは僕も結構気になってました!
表示を下付けにするのなるほどなのですが、例の感じだと上下どっちに属する値なのかわかりづらいかも・・・?

これ何か良い方法あるんですかね~~~~
場当たり的には、削除アイコン表示中(ホバー中)は長さを表示しないって手もありそうなんですが、それで良いのかなぁって感じでいます。
まあ横幅が狭くなるのは。。。。仕方ないのかなぁという気持ち。。。 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

トーク:音声の長さが分かる表示の追加

4 participants